<?php

namespace Project\Form;

use Zend\Form\Form;
use Zend\Form\Element;

class TaskForm extends Form
{
	public function __construct($name = null)
	{
		// we want to ignore the name passed
		parent::__construct('task');
		$this->setAttribute('method', 'post');
		$this->add(array(
				'name' => 'id',
				'type' => 'hidden',
		));

		$this->add(array(
				'name' => 'completeddatetime',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'completeddatetime',
				),
		));
		$this->add(array(
				'name' => 'completed',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'completed',
				),
		));
		$this->add(array(
				'name' => 'duedatetime',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'duedatetime',
				),
		));
		$this->add(array(
				'name' => 'description',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'description',
				),
				
		));
		$this->add(array(
				'name' => 'name',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'name',
				),
		
		));
		$this->add(array(
				'name' => 'status',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'status',
				),
		
		));
		$this->add(array(
				'name' => 'activity_id',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'activity_id',
				),
		
		));
		$this->add(array(
				'name' => 'requestedbyuser__user_id',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'requestedbyuser__user_id',
				),
		
		));
		$this->add(array(
				'name' => 'project_id',
				'attributes' => array(
						'type'  => 'text',
				),
				'options' => array(
						'label' => 'project_id',
				),
		
		));
		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'value' => 'Go',
							
				),
		));
	}
}